﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.DomainModels;

namespace MYData.Entity.DTO.ApiEntity.Input
{
    /// <summary>
    /// 暂存添加Dto
    /// </summary>
    public class InsertBaseInfoTs_Dto
    {
        /// <summary>
        ///用户ID
        /// </summary>
        [Display(Name = "用户ID")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string userId { get; set; }

        /// <summary>
        ///项目名称
        /// </summary>
        [Display(Name = "项目名称")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectName { get; set; }

        /// <summary>
        ///项目暂存信息
        /// </summary>
        [Display(Name = "项目暂存信息")]
        [Column(TypeName = "nvarchar(max)")]
        [Editable(true)]
        public string projectInfo { get; set; }

        /// <summary>
        ///项目创建时间
        /// </summary>
        [Display(Name = "项目创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? projectCreateTime { get; set; }
        /// <summary>
        ///暂存类型0（是未提交暂存） 1（是编辑暂存）
        /// </summary>
        [Display(Name = "暂存类型0（是未提交暂存） 1（是编辑暂存）")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int transientType { get; set; }

    }
}
